import { defineStore } from 'pinia'

export const infostore = defineStore({
    id:"info",
    state:()=>{
        return {
            text:[
                {
                    title:"我的主页",
                    icon:' <el-icon ><Avatar /></el-icon>',
                    path:'/details'
                },
                {
                    title:"退出",
                    icon:'',
                    path:''
                }
            ]
        }
    },
    actions:{
        gettext:()=>{
            this.$patch({
                text:[]
            }) 
        }
    }
})